home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / support-files / my-small.cnf < prev    next >
Encoding:
Text File  |  2003-01-22  |  2.2 KB  |  78 lines  |  [TEXT/ttxt]

  1. # Example mysql config file for small systems.
  2. #
  3. # This is for a system with little memory (<= 64M) where MySQL is only used
  4. # from time to time and it's important that the mysqld deamon
  5. # doesn't use much resources.
  6. #
  7. # You can copy this file to
  8. # /etc/my.cnf to set global options,
  9. # mysql-data-dir/my.cnf to set server-specific options (in this
  10. # installation this directory is /usr/local/mysql/var) or
  11. # ~/.my.cnf to set user-specific options.
  12. #
  13. # One can in this file use all long options that the program supports.
  14. # If you want to know which options a program support, run the program
  15. # with --help option.
  16.  
  17. # The following options will be passed to all MySQL clients
  18. [client]
  19. #password    = your_password
  20. port        = 3306
  21. socket        = /tmp/mysql.sock
  22.  
  23. # Here follows entries for some specific programs
  24.  
  25. # The MySQL server
  26. [mysqld]
  27. port        = 3306
  28. socket        = /tmp/mysql.sock
  29. skip-locking
  30. set-variable    = key_buffer=16K
  31. set-variable    = max_allowed_packet=1M
  32. set-variable    = thread_stack=64K
  33. set-variable    = table_cache=4
  34. set-variable    = sort_buffer=64K
  35. set-variable    = net_buffer_length=2K
  36. server-id    = 1
  37.  
  38. # Uncomment the following if you want to log updates
  39. #log-bin
  40.  
  41. # Uncomment the following if you are NOT using BDB tables
  42. #skip-bdb
  43.  
  44. # Uncomment the following if you are using InnoDB tables
  45. #innodb_data_home_dir = /usr/local/mysql/var/
  46. #innodb_data_file_path = ibdata1:10M:autoextend
  47. #innodb_log_group_home_dir = /usr/local/mysql/var/
  48. #innodb_log_arch_dir = /usr/local/mysql/var/
  49. # You can set .._buffer_pool_size up to 50 - 80 %
  50. # of RAM but beware of setting memory usage too high
  51. #set-variable = innodb_buffer_pool_size=16M
  52. #set-variable = innodb_additional_mem_pool_size=2M
  53. # Set .._log_file_size to 25 % of buffer pool size
  54. #set-variable = innodb_log_file_size=5M
  55. #set-variable = innodb_log_buffer_size=8M
  56. #innodb_flush_log_at_trx_commit=1
  57. #set-variable = innodb_lock_wait_timeout=50
  58.  
  59. [mysqldump]
  60. quick
  61. set-variable    = max_allowed_packet=16M
  62.  
  63. [mysql]
  64. no-auto-rehash
  65. # Remove the next comment character if you are not familiar with SQL
  66. #safe-updates
  67.  
  68. [isamchk]
  69. set-variable    = key_buffer=8M
  70. set-variable    = sort_buffer=8M
  71.  
  72. [myisamchk]
  73. set-variable    = key_buffer=8M
  74. set-variable    = sort_buffer=8M
  75.  
  76. [mysqlhotcopy]
  77. interactive-timeout
  78.